﻿<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Success</title>
    <link href="http://cdn.zinnia.com/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div>
        <a href="javascript:;" class="btn btn-default get">Get</a>
        <a href="javascript:;" class="btn btn-default post">POST</a>
    </div>
    <script src="http://cdn.zinnia.com/plugin/jquery/jquery.min.js" type="text/javascript"></script>
    <script>
        $(".get").click(function () {
            $.ajax({
                type:'GET',
                url: '@Url.Action("GetAjaxTest")',
                success: function (result) {
                    
                }
            });
        });
        $(".post").click(function () {
            $.ajax({
                type:'POST',
                url: '@Url.Action("PostAjaxTest")',
                success: function (result) {
                    
                }
            });
        });
    </script>
</body>
</html>
